package book;

import java.util.ArrayList;

public class BookList {
    //存储图书的集合
    public ArrayList<Book> books = new ArrayList<>();
    //书店的最大图书容量(不可变)
    public static final int MAX_SIZE = 999;
    public BookList(){
        books.add(new Book("海贼王","001",88,"尾田荣一郎","冒险",487));
        books.add(new Book("刀剑神域","002",100,"川原砾","战斗",427));
        books.add(new Book("火影忍者","003",60,"岸本齐史","冒险",441));
        books.add(new Book("进击的巨人","004",19,"谏山创","剧情",429));
        books.add(new Book("碧蓝之海","005",73,"井上坚二","搞笑",399));
    }

    public BookList(ArrayList<Book> books) {
        this.books = books;
    }

    public ArrayList<Book> getBooks() {
        return books;
    }

    public void setBooks(ArrayList<Book> books) {
        this.books = books;
    }
}
